package chapter15;

import java.util.Scanner;

public class Day3 {
    public static void main(String[] args) {
        /*
        4：输入两个整数，输出他们 & |  ^的结果。
         */
        Scanner input = new Scanner(System.in);
        System.out.println("请输入第一个整数：");
        int x = input.nextInt();
        System.out.println("请输入第二个整数：");
        int y = input.nextInt();
        System.out.println("&:"+(x&y));
        System.out.println("|:"+(x|y));
        System.out.println("^:"+(x^y));
    }
}
